package com.design.pattern.structural.decorator;

/**
 * @Author hanyuanlai
 * @Date 2022/7/17
 */
public abstract class Food extends Person{
    private Person person;


    public Food(int order) {
        this.order = order;
    }

    @Override
    public void decorate(Person person) {
        this.person = person;
    }
    @Override
    void chuanyifu() {

    }

    @Override
    void eat() {
        person.eat();
    }
}
